<?php 
$smarty->compile_dir = $folder.'/etc/view_c';
$smarty->cache_dir = $folder. '/etc/cache';
//Vista diferente para cada classe
$smarty->template_dir = $folder. '/view';
if (!is_dir($folder.  '/view')) {
	if(mkdir($folder.  '/view', 0777, true)){
	}
	else{
		echo 'Create view dir in '.$folder. '/view<br />';
	}

}